package com.cvpoc.exception;

public class BusinessException extends Exception {

	private static final long serialVersionUID = 2396969571031443729L;
	private Exception exceptionOrigine;
	private String message;

	public BusinessException(String message) {
		super();
		this.message = message;
	}

	public BusinessException(Exception exceptionOrigine, String message) {
		super();
		this.exceptionOrigine = exceptionOrigine;
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Exception getExceptionOrigine() {
		return exceptionOrigine;
	}

	public void setExceptionOrigine(Exception exceptionOrigine) {
		this.exceptionOrigine = exceptionOrigine;
	}

}
